package com.yg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yg.entity.readAndWriteTemplates.PublicationsRead;
import com.yg.entity.singleTemplates.Publications;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet14，此表是本科生发表文章表 Mapper 接口
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface PublicationsMapper extends BaseMapper<Publications> {

    /**
     * 查询条件：①论文题目（下拉列表，模糊查询）
     * ②发表起止时间
     * ③期刊性质（下拉列表）
     */
    IPage<PublicationsRead> publicationsConditionalQuery(IPage<PublicationsRead> iPage, @Param("publicationsRead") PublicationsRead publicationsRead);

    List<Publications> publicationsConditionalQuery1(@Param("publications") Publications publications);

    /**
     * 查询所有
     */
    IPage<Publications> selectAllPublications(IPage<Publications> iPage);

    List<Publications> selectAllPublications1();

}
